package api

import (
	"go-empty-project/app/controller"
	"go-empty-project/app/service"

	"github.com/gin-gonic/gin"
)

type AdController struct {
	controller.BaseController
}

func (ad AdController) Index(c *gin.Context) {

	adservice :=service.GetAdService(c)

	plt := adservice.Index(c)
	c.JSON(200, plt)

}
